<?php
/**
 * Dao of Promotion
 *
 * @author fsqijy
 */
require_once BaseUtil::getModulePath("base") . '/models/BaseDao.php';

class SalePricePromotionDao extends BaseDao {

    protected $_name;

    public function  _setup() {
        $this->_name = $this->prefix() . "sale_price_promotions";
        parent::_setup();
    }

    public function updateSalePricePromotion($data,$id){
        $where = $this->db_w->quoteInto('id = ?', $id);
        $this->update($data,$where);
    }
}